﻿public class Vehicle
{
    protected int wheels; // 车轮数
    protected float weight; // 车重量
    // 基类SetVehicle方法（示例，按实验要求）
    public void SetVehicle(int wheels, float weight)
    {
        this.wheels = wheels;
        this.weight = weight;
    }
    // 基类GetVehicle方法
    public void GetVehicle()
    {
        MessageBox.Show($"车轮数:{wheels}\n车重量:{weight}吨");
    }
}